<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Swing GridLayout</title>
	<link href="../../../book.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>SWT StackLayout</h1>
<table border="0" width="800" cellspacing="0" cellpadding="0">
	<tr>
		<td>A <b>StackLayout</b> object is a layout manager for a container. It 
		treats each component in the container as a card. Only one card is 
		visible at a time, and the container acts as a stack of cards. The first 
		component added to a <b>StackLayout</b> object is the visible component 
		when the container is first displayed. The ordering of cards is 
		determined by the container's own internal ordering of its component 
		objects. <b>StackLayout</b> defines a set of methods that allow an 
		application to flip through these cards sequentially, or to show a 
		specified card.<p></p>
<h2><a name="MainFeatures"></a>Main Features</h2>
            <ul>
              <li>Select <b>StackLayout</b> from the <b>Layouts</b> palette and 
				drop it on a Window or Composite</li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/sl_design_view.gif"></p>
</blockquote>
<ul>
				<li>When adding a new widget, the current drop point is 
				highlighted in green</li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/sl_drop1.gif" width="296" height="266">&nbsp;
				<img border="0" src="images/sl_drop2.gif" width="296" height="266"></p>
</blockquote>
<ul>
				<li>Switch between cards using the up/down arrows in the upper 
				right corner</li>
            </ul>
		<blockquote>
			<p>
	<img border="0" src="images/sl_switch1.gif">&nbsp;
	<img border="0" src="images/sl_switch2.gif" width="296" height="266"></p>
		</blockquote>
		<ul>
				<li>Horizontal and vertical margins can be specified using the <b>
				<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane.html">Property Pane</a></b></li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/sl_properties.gif" align="top">&nbsp;
	<img border="0" src="images/sl_gaps.gif" width="296" height="266"></p>
</blockquote>
		</td>
	</tr>
</table>
</body>
</html>